
<?$this->load->view('admin/tools/admin-header')?>
<?$this->load->view('admin/tools/admin-menu')?>


<?foreach ($query as $row)
		{
			$id			= $row->id;
			$judul		= $row->judul;
			$date	 	= $row->date;
			$isi	 	= $row->isi;
		}?>
			
<div class="wrap">
	<a><div id="icon-index" class="icon32"><br /></div></a><br>
<h3><a>Tulis -> Buying</a></h3>

<div id="dashboard-widgets-wrap">
<?if(!(empty($mode))){echo"<div id='message' class='updated fade'><p>$pesan</p></div>";}?>

<form action="<?=site_url('administrator/update_buying')?>" method='POST'>
<table>
<tr>
<td>

<div>
<h3><label for="title">Judul</label></h3>
<input type="text" name="buying_judul" size="40" value="<?=$judul?>" />
<input type="hidden" name="id" size="40" value="<?=$id?>" />
</div></td></tr>
<tr>
<td>
<div>
<h3><label for="title">Tanggal</label></h3>
<input type="text" name="buying_tanggal" size="17" value="<?=$date?>"  id="DateAgenda" readonly>
<img src="<?=base_url()?>css/images/date.jpg" onClick="SelectDate('Date1')" style="cursor:pointer"/>
</div> 

</td></tr>
<tr>
<td>
<div>
<h3><label for="title">Deskripsi</label></h3>
<textarea id="teks" cols="70" rows="5" name="buying_isi" style="width:100%"><?=$isi?></textarea>
</div>
</td>
</tr>
<tr>
<td>
<div><br>
<input type="submit" name="submit" class="button-primary" value="Update">
</div>
</td>
</tr>

</table>
</form>
</div>
</div><!-- wrap -->


<div class="clear"></div></div><!-- wpbody-content -->
<div class="clear"></div></div><!-- wpbody -->
<div class="clear"></div></div><!-- wpcontent -->
</div><!-- wpwrap -->

<!--admin-footer-->
<?$this->load->view('admin/tools/admin-footer');?>
<!--admin-footer-->
